package com.lwm.base;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

/**
 * @author liweimin
 * @date 2020/9/23 11:01
 * @description
 */
public class ShuZu {
    public static void main(String[] args) {
        //Java
        int[] numbers = new int[10];
        //C/C++
        int number[] = null;
        numbers[0] = 12;

        //静态初始化
        int[] a = {1,2,3,4,5,6,7,8,9,10};
        //动态初始化:包含默认初始化
        int[] b = new int[10];
        List<int[]> ints = Arrays.asList(a);
        ints.forEach((e)-> System.out.println(e));
        Collections.reverse(ints);
        ints.forEach(System.out::println);
        //
    }
}
